package com.training.java.core.inheritance;

public class BmwDemo {

	public static void main(String[] args) {
	
		Bmw bmw = new Bmw(true,2345,"BMW ","BMW x5","BLUE",500,2014,250);
		System.out.println(" Initial color :"+ bmw.getCarColor());
		
		
		bmw.convert();
		bmw. start();
		bmw.setCarColor("RED");
		bmw.accelerateSpeed(600);

		
		
		System.out.println(" BMW X5 color after setting through settermethod :"+ bmw.getCarColor());
		System.out.println("my car Make is " + bmw.getMake());
		System.out.println("my car Medel is " + bmw.getModel());
		System.out.println("my car vinNumber is " + bmw.getVinNumber());
		
		System.out.println("my car Maxium Speed  is " + bmw.getMaxSpeed());
	
		System.out.println("my car Gear is " + bmw.getGear());
	}

}
